package com.xmsx.back.pojo;

import java.util.Objects;

public class DocumentData {

    private int total;
    private int maleNum;
    private int femaleNum;
    private int bachelorNum;
    private int masterNum;
    private double backToOriginRate;

    public DocumentData() {
    }

    public DocumentData(int total, int maleNum, int femaleNum, int bachelorNum, int masterNum, double backToOriginRate) {
        this.total = total;
        this.maleNum = maleNum;
        this.femaleNum = femaleNum;
        this.bachelorNum = bachelorNum;
        this.masterNum = masterNum;
        this.backToOriginRate = backToOriginRate;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getMaleNum() {
        return maleNum;
    }

    public void setMaleNum(int maleNum) {
        this.maleNum = maleNum;
    }

    public int getFemaleNum() {
        return femaleNum;
    }

    public void setFemaleNum(int femaleNum) {
        this.femaleNum = femaleNum;
    }

    public int getBachelorNum() {
        return bachelorNum;
    }

    public void setBachelorNum(int bachelorNum) {
        this.bachelorNum = bachelorNum;
    }

    public int getMasterNum() {
        return masterNum;
    }

    public void setMasterNum(int masterNum) {
        this.masterNum = masterNum;
    }

    public double getBackToOriginRate() {
        return backToOriginRate;
    }

    public void setBackToOriginRate(double backToOriginRate) {
        this.backToOriginRate = backToOriginRate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DocumentData)) return false;
        DocumentData that = (DocumentData) o;
        return getTotal() == that.getTotal() &&
                getMaleNum() == that.getMaleNum() &&
                getFemaleNum() == that.getFemaleNum() &&
                getBachelorNum() == that.getBachelorNum() &&
                getMasterNum() == that.getMasterNum() &&
                Double.compare(that.getBackToOriginRate(), getBackToOriginRate()) == 0;
    }

    @Override
    public int hashCode() {
        return Objects.hash(getTotal(), getMaleNum(), getFemaleNum(), getBachelorNum(), getMasterNum(), getBackToOriginRate());
    }

    @Override
    public String toString() {
        return "DocumentData{" +
                "total=" + total +
                ", maleNum=" + maleNum +
                ", femaleNum=" + femaleNum +
                ", bachelorNum=" + bachelorNum +
                ", masterNum=" + masterNum +
                ", backToOriginRate=" + backToOriginRate +
                '}';
    }
}
